package com.qy.changemachine.dataBean

data class APKInfo(
    val apkName: String = "",      // apk 名称
    val apkDownLoadPath: String = "",    // 下载地址
    val packageName: String = "",         // apk 包名
    val className: String = "",     // apk 类名
    val type: Int = 1, //1：普通安装apk  2：LSP 模块apk
    val hookPackageName: String = "",// 如果type是 2 需要这个字段
)

data class DownLoadApkListResponse(
    val code: Int = 200,           // 响应码
    val msg: String = "",         // 响应消息
//    var data: List<APKInfo> = emptyList() // apk list com.tencent.mobileqq/.activity.LoginPublicFragmentActivity
    var data: List<APKInfo> = listOf(
        APKInfo(
            apkName = "qq.apk",
            apkDownLoadPath = "http://example.com/qq.apk",
            packageName = "com.tencent.mobileqq",
            className = "com.tencent.mobileqq.activity.LoginPublicFragmentActivity",
            type = 1,
            hookPackageName = ""
        ),
        APKInfo(
            apkName = "lsp.apk",
            apkDownLoadPath = "http://example.com/lsp.apk",
            packageName = "com.android.tdconfig",
            className = "com.android.tdconfig.ui.MainActivity",
            type = 1,
            hookPackageName = ""
        ),
        APKInfo(
            apkName = "plug.apk",
            apkDownLoadPath = "http://example.com/plug.apk",
            packageName = "com.example.info",
            className = "com.example.qsetfg.MainActivity",
            type = 2,
            hookPackageName = "com.tencent.mobileqq"
        )
    )
)